<template>
  <div class="wrap">
    <div class="top">
      <div class="main">
        <a>
          <!-- <i class="el-icon-chat-dot-round green"></i>&nbsp;微信登录 -->

          <el-dropdown>
            <span class="el-dropdown-link">
              <img
                style="width:30px;height:30px;border-radius:50%;"
                src="http://ecplf.com/static/upload/news/156073784119.jpg"
              >
              <!-- <i class="el-icon-arrow-down el-icon--right"></i> -->
            </span>
            <el-dropdown-menu slot="dropdown" placement="top-start">
              <el-dropdown-item>188****6699</el-dropdown-item>
              <el-dropdown-item>
                <el-badge :value="12" class="item" type="primary">我的消息</el-badge>
              </el-dropdown-item>
              <el-dropdown-item divided>红包</el-dropdown-item>
              <el-dropdown-item divided>支出记录</el-dropdown-item>
              <el-dropdown-item divided>出售商品</el-dropdown-item>
              <el-dropdown-item divided>求购商品</el-dropdown-item>
              <el-dropdown-item divided>设置</el-dropdown-item>
              <el-dropdown-item divided>退出</el-dropdown-item>
            </el-dropdown-menu>
          </el-dropdown>
        </a>
        <el-divider direction="vertical"></el-divider>
        <a>地区</a>
      </div>
    </div>
    <div class="header disflex main">
      <div class="logo">
        <h1>
          二手锅炉交易平台
          <p>我 们 是 专 业 的 二手锅炉交易商</p>
        </h1>
      </div>
      <div class="search">
        <el-input placeholder="请输入内容" v-model="search" class="input-with-select">
          <el-button slot="append" icon="el-icon-search"></el-button>
        </el-input>
        <span>
          <a>X5045S8IZTAK4359VF-ES3C80F9BRV</a>
        </span>
      </div>
    </div>
    <div class="nav">
      <div class="main">
        <el-menu
          :default-active="activeIndex"
          class
          mode="horizontal"
          @select="handleSelect"
          background-color="#076ce0"
          text-color="#fff"
          active-text-color="#f13a3a"
        >
          <el-submenu index="1" style="width:200px;">
            <template slot="title">导航</template>

            <el-menu-item index="2-1">选项1</el-menu-item>
            <el-menu-item index="2-2">选项2</el-menu-item>
            <el-menu-item index="2-3">选项3</el-menu-item>

            <el-submenu index="2-4">
              <template slot="title">选项4</template>
              <el-menu-item index="2-4-1">选项1</el-menu-item>
            </el-submenu>
          </el-submenu>
          <el-menu-item index="2">
            <a href="/#/index">首页</a>
          </el-menu-item>

          <el-menu-item index="3">
            <a href="/#/buyList">我要买</a>
          </el-menu-item>

          <el-menu-item index="4">
            <a href="/#/wantToSale">我要卖</a>
          </el-menu-item>
          <el-menu-item index="5">
            <a href="/#/purchaseList">求购信息</a>
          </el-menu-item>
          <el-menu-item index="5">
            <a>签到领红包</a>
          </el-menu-item>
          <el-menu-item index="6">
            <a>转发有礼</a>
          </el-menu-item>
        </el-menu>
      </div>
    </div>
    <!--nav结束-->
    <div class="banner">
      <el-carousel height="350px">
        <el-carousel-item v-for="item in 4" :key="item">
          <div class="bitem"></div>
        </el-carousel-item>
      </el-carousel>
    </div>
    <!-- banner --end -->
    <div class="cenblock">
      <router-view/>
      <div class="foot">
        <div class="main disflex">
          <div class="left">
            二手锅炉交易平台
            <br>
            <span>http://www.xxx.com</span>
          </div>
          <div class="right">
            <img src="http://ecplf.com/static/upload/news/156073784119.jpg">
            <p>
              <span>首页</span>
              <el-divider direction="vertical"></el-divider>
              <span>我要买</span>
              <el-divider direction="vertical"></el-divider>
              <span>我要卖</span>
              <el-divider direction="vertical"></el-divider>
              <span>求购</span>
            </p>
            <p style="margin-top:20px;">
              Copyright [网站建成日期] by [某某某或公司名称] .All rights reserved.
              <br>冀ICP备13020542号 河北省公安备案编号：13100102000052/3
            </p>
          </div>
        </div>
      </div>
      <!-- foot--end -->
    </div>

    <!-- cenblock --end -->
  </div>
</template>
<script>
// import configs from "../config.js";

export default {
  data() {
    return {
      search: "",
      activeIndex: "1"
    };
  },
  computed: {},
  mounted() {},
  created() {},

  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    }
  },

  mounted() {}
};
</script>
<style scoped lang="scss">
.top {
  height: 36px;
  line-height: 36px;
  background: #f5f5f5;
}
.header {
  justify-content: space-between;
  height: 150px;
  align-items: center;
  h1 {
    font-size: 30px;
    font-weight: normal;
    p {
      padding-top: 15px;
      color: #999;
    }
  }
}
.search {
  span {
    a {
      padding-top: 10px;
      display: inline-block;
    }
  }
}
.nav {
  height: 45px;
  line-height: 45px;
  background: #076ce0;

  color: #fff;
  //   li {
  //     width: 120px;
  //     text-align: center;
  //     font-size: 16px;
  //   }
}

.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>
